#ifndef __MECHINE_OFFSET_ADJ__
#define __MECHINE_OFFSET_ADJ__

typedef struct
{
  char enable; 
  char dir;
  int last;
  int offset; 
  int real;
  int dest;
  int encode;
}adj_t;

int adj_init(adj_t *adj, int offset);
int adj_encode_value(adj_t *adj, int encode_val);
int adj_ctrl_param(adj_t *adj, int encode_val, int set_val);
int adj_disable(adj_t *adj);

#endif